package com.igelato.controller.Coupon;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
public class CouponSearchDto implements Serializable {

    @ApiModelProperty("页码")
    Integer page_num = 1;

    @ApiModelProperty("每页多少条数据")
    Integer page_size = 10;

    private Long id;

    private Integer batch_id;

    private Integer user_id;

    @ApiModelProperty("1：未领取；2；已领取；3：已使用；4：已过期；5：已冻结；")
    private Integer status;

    @ApiModelProperty("有效期（当优惠券时效是days时，则这里的有效期是在用户领取时计算得到），即优惠券截止时间，如果值为null则表示永久有效")
    private LocalDateTime valid_time;

    private LocalDateTime used_time;

    private LocalDateTime from_date;

    private LocalDateTime to_date;
}
